package com.wantupai.mvp.framework.base.adapter;

import android.content.Context;
import android.support.annotation.LayoutRes;

import com.wantupai.mvp.framework.base.adapter.viewholder.base.ItemViewDelegate;


/**
 * @author :Created by zhangqing on 2018/08/01 15:03
 * @description :
 * @email :1423118197@qq.com
 * @classpath : cn.doolii.mvp.framework.base.adapter.BaseItemDelegate
 */
public abstract class BaseItemDelegate<T> implements ItemViewDelegate<T> {
    private @LayoutRes
    int layResId;
    private final Context mContext;

    public BaseItemDelegate(Context context, @LayoutRes int layResId) {
        this.layResId = layResId;
        this.mContext = context;
    }

    @Override
    public final int getItemViewLayoutId() {
        return layResId;
    }


    public final Context getContext() {
        return mContext;
    }
}
